object-oriented
programming language (like Python,JavaScript).object
?Important
Objects are like boxes in which we can put things: data, functions, and even other objects. Ben Skinner
R
import those data files into R Objects
typeof()
to check the type of datatypeof()
returns the Data type or data structureDoubles
are numbers like 2.0, 2.2, 2.999R
by default all numbers are Double
Integers
are natural numbersR
by default treated as Double
Complex
like \(x+yi\)Logical
: a variable of logical type data has values like TRUE
or FALSE
Characters
represents a string values
in R
double quotes
R
Factor
represents categorical dataas.Date
is used to create Date and Time
objectshelp(as.Date)
R
R
missing data is represented by NA
meaning Not AvailableR
is NaN
meaning Not a NumberNULL
in R
represent an object with ZERO length-Inf
and Inf
represents negative and positive infinityTHANKS